<template>
  <div>
    <h3>添加账号</h3>

    <div class="inps">
      <p class="proinps">
        &emsp;账号&emsp;<span class="productName"
          ><el-input placeholder="商品名称" v-model="value" clearable>
          </el-input
        ></span>
      </p>

      <p class="proinps">
        &emsp;密码&emsp;<span class="productName"
          ><el-input
            placeholder="请输入密码"
            v-model="value"
            show-password
          ></el-input
        ></span>
      </p>

      <p class="proinps">
        用户组&emsp;<span class="productName">
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </span>
      </p>

      <div class="btns">
        <el-button type="primary">添加</el-button>
        <el-button>重置</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
      options: [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
h3 {
  height: 50px;
}
.inps {
  padding: 20px 40px;
  background-color: white;
  .proinps {
    display: flex;
    align-items: center;
    margin-top: 20px;
    .productName {
      display: flex;
      width: 300px;
    }
    .textarea {
      display: block;
      width: 300px;
    }
  }
  .btns{
    display: flex;
    margin-top: 20px;
    margin-left: 80px;
  }
}
</style>